package com.dunqi.gpm.shunqing.home.activity;

import android.os.Bundle;

import com.dunqi.gpm.shunqing.R;
import com.dunqi.gpm.shunqing.common.base.BaseAct;
import com.dunqi.gpm.shunqing.home.fragment.ProjectListDayReportFragment;
import com.dunqi.gpm.shunqing.my.util.UserUtil;

import java.util.HashMap;

public class ProjectDayReportActivity extends BaseAct {


    @Override
    protected void refreshData(Bundle savedInstanceState) {

    }

    @Override
    protected void initUiAndListener() {
        HashMap<String, String> map = new HashMap<>();
        if (UserUtil.userFromRespOrg()) {
            map.put("uda", String.valueOf(true));
        } else {
            map.put("uda", String.valueOf(false));
        }


        ProjectListDayReportFragment fragment = ProjectListDayReportFragment.newInstance(map);

        getSupportFragmentManager()
                .beginTransaction()
                .add(R.id.container, fragment)
                .commit();

    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_project_day_report;
    }
}
